export const ADDUSER = Symbol("add-user");
export const DELETEUSER = Symbol("delete-user");
export const UPDATEUSER = Symbol("update-user");

export const createAddUserAtion = (user) => ({
    type: ADDUSER,
    payload: user,
});

export const createDeleteUserAction = (id) => ({
    type: DELETEUSER,
    payload: id,
});

export const createUpdateUserAtion = (id, newUser) => ({
    type: UPDATEUSER,
    payload: {
        ...newUser,
        id
    }
})